/**
 * Created by nengjian on 2017/4/17.
 */
module.exports = app => {
    //过滤
    const bodyfilter = app.middlewares.bodyfilter({ match: '/api' });
    app.resources('posts', '/api/posts', bodyfilter , 'posts');
    app.resources('article', '/api/article', bodyfilter , 'api.article');
};